// Agent common in project StockMarket

/* auxiliary plans for Cartago */

// try to find a particular artifact and then focus on it
+!discover_art(ToolName)
   <- lookupArtifact(ToolName,ToolId);
      focus(ToolId).
	  
// keep trying until the artifact is found
-!discover_art(ToolName)
   <- .wait(100);
      !discover_art(ToolName).
      
+!stopFocusArt(ToolName)
	<- 	lookupArtifact(ToolName,ToolId);
      	stopFocus(ToolId).